home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / RIncludes / UnicodeUtilities.r < prev    next >
Encoding:
Text File  |  1998-08-17  |  1.6 KB  |  51 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        UnicodeUtilities.r
  3.  
  4.      Contains:    Types, constants, prototypes for Unicode Utilities (Unicode input and text utils)
  5.  
  6.      Version:    Technology:    Allegro
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1997-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __UNICODEUTILITIES_R__
  19. #define __UNICODEUTILITIES_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #define kUCKeyOutputStateIndexMask         0x4000
  26. #define kUCKeyOutputSequenceIndexMask     0x8000
  27. #define kUCKeyOutputTestForIndexMask     0xC000                /*  test bits 14-15 */
  28. #define kUCKeyOutputGetIndexMask         0x3FFF                /*  get bits 0-13 */
  29.  
  30. #define kUCKeyStateEntryTerminalFormat     0x0001
  31. #define kUCKeyStateEntryRangeFormat     0x0002
  32.  
  33. #define kUCKeyLayoutHeaderFormat         0x1002
  34. #define kUCKeyLayoutFeatureInfoFormat     0x2001
  35. #define kUCKeyModifiersToTableNumFormat  0x3001
  36. #define kUCKeyToCharTableIndexFormat     0x4001
  37. #define kUCKeyStateRecordsIndexFormat     0x5001
  38. #define kUCKeyStateTerminatorsFormat     0x6001
  39. #define kUCKeySequenceDataIndexFormat     0x7001
  40.  
  41. #define kUCKeyActionDown                 0                    /*  key is going down */
  42. #define kUCKeyActionUp                     1                    /*  key is going up */
  43. #define kUCKeyActionAutoKey             2                    /*  auto-key down */
  44. #define kUCKeyActionDisplay             3                    /*  get information for key display (as in Key Caps)             */
  45.  
  46. #define kUCKeyTranslateNoDeadKeysBit     0                    /*  Prevents setting any new dead-key states */
  47. #define kUCKeyTranslateNoDeadKeysMask     0x00000001
  48.  
  49. #endif /* __UNICODEUTILITIES_R__ */
  50.  
  51.